package com.funcity.events
{
	import flash.events.Event;
	import flash.utils.ByteArray;

	public final class PacketEvent extends Event
	{
		public static const PACKET:String = "packet";
		
		private var _packet:ByteArray;

		public function PacketEvent(packet:ByteArray)
		{
			super(PACKET, false, false);
			
			_packet = packet;
		}

		public function get packet():ByteArray
		{
			return _packet;
		}

		public override function clone():Event
		{
			return new PacketEvent(_packet);
		}
	}
}